package com.hdd.art.biz.painting.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 作品表
 * </p>
 *
 * @author fang
 * @since 2021-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_biz_painting_works")
@ApiModel(value="PaintingWorks对象", description="作品表")
public class PaintingWorks implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    private String artId;

    @ApiModelProperty(value = "作品编号")
    @TableId(value = "painting_no", type = IdType.AUTO)
    private Integer paintingNo;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "画作名称")
    private String paintingName;

    @ApiModelProperty(value = "画作描述")
    private String paintingDescription;

    @ApiModelProperty(value = "作品")
    private String painting;

    @ApiModelProperty(value = "原始图")
    private String originalPainting;

    @ApiModelProperty(value = "浏览数量")
    private Long visitCount;

    @ApiModelProperty(value = "获赞数量")
    private Long praiseCount;

    @ApiModelProperty(value = "赞赏数量")
    private Long rewardCount;

    @ApiModelProperty(value = "喜欢数量")
    private Long favourCount;

    @ApiModelProperty(value = "转载数量")
    private Long reshipmentCount;

    @ApiModelProperty(value = "是否允许赞赏,0:允许; 1:不允许")
    private Boolean allowReward;

    @ApiModelProperty(value = "是否允许转载,0:允许; 1:不允许")
    private Boolean allowReshipment;

    @ApiModelProperty(value = "草稿作品信息")
    private String draftInfo;

    @ApiModelProperty(value = "是否作品,0:草稿; 1待审,2:作品")
    private Boolean shows;

    @ApiModelProperty(value = "是否推荐,0：不推荐，1推荐")
    private Boolean recommend;

    @ApiModelProperty(value = "审核，不许发布的原因")
    private String reason;

    @ApiModelProperty(value = "创建人id")
    private String createBy;

    @ApiModelProperty(value = "创建日期")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后修改人id")
    private String updateBy;

    @ApiModelProperty(value = "最后修改日期")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    @ApiModelProperty(value = "备注信息")
    private String remarks;

    @ApiModelProperty(value = "删除标记位,0:正常; 1:删除")
    private Boolean delFlag;

    @ApiModelProperty(value = "分享次数")
    private Long shareCount;

    @ApiModelProperty(value = "保存为海报数量")
    private Long saveImgCount;

    @ApiModelProperty(value = "任务id，用于匹配异步推送结果,音频审核结果")
    private String traceId;

    @ApiModelProperty(value = "音频地址")
    private String mediaUrl;


    @ApiModelProperty(value = "是否原创T F")
    private String isOriginal;

    @ApiModelProperty(value = "是否置顶")
    private String istop;

    @ApiModelProperty(value = "F")
    private String adopt;

    private Integer roomId;

    private String medium;

    private String size;

    private String prize;
    @TableField(exist = false)
    private Integer status;
    @TableField(exist = false)
    private String isAdmin;
    @TableField(exist = false)
    private Integer vid;
}
